import cv2
image=cv2.imread('1.webp',cv2.COLOR_BAYER_BG2GRAY)
cv2.imshow('Input',image)
image=cv2.GaussianBlur(image,(5,5),0)
edges=cv2.Canny(image,50,150)
contours,hierarchy=cv2.findContours(edges,cv2.RETR_EXTERNAL,cv2.CHAIN_APPROX_SIMPLE)
imagel=cv2.drawContours(image,contours,-1,(255,255,0),5)
cv2.imshow('Contours',imagel)
cv2.waitKey()
cv2.destroyAllWindows()